<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AppendTaxiStatusToDriversTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('drivers', function (Blueprint $table) {
            //
            $table->enum('taxi_status', [1, 2, 3, 4, 5, -1])->default(-1)->comment('出租车状态：1-待审核，2-在职，3-驳回，4-冻结，5-离职，-1-未申请');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('drivers', function (Blueprint $table) {
            //
            $table->dropColumn(['taxi_status']);
        });
    }
}
